Introduce new flavour of map_domain_page()
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 07:26:16 +0000 (08:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 07:26:16 +0000 (08:26 +0100)
commit84d568f5c9ceb342be7c883074ac8c5423ab1492
tree115cf3d4c07b9639192c005e5ef7e129f47c1e4b
parent78e09264ad9836fa47610399e4a5b4d3cd62caf5
Introduce new flavour of map_domain_page()

Introduce a variant of map_domain_page() directly getting passed a
struct page_info * argument, based on the observation that in many
places the argument to this function so far simply was the result of
page_to_mfn(). This is meaningful for the x86-64 case where
map_domain_page() really just is an invocation of mfn_to_virt(), and
hence the combined mfn_to_virt(page_to_mfn()) now represents a
needless round trip conversion compressed -> uncompressed ->
compressed of the MFN representation.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 files changed:
xen/arch/x86/hvm/stdvga.c
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/mm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/paging.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/tboot.c
xen/common/grant_table.c
xen/common/page_alloc.c
xen/common/tmem_xen.c
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h
xen/include/xen/domain_page.h